﻿using Benefactor.Models.DtoModels;
using FluentValidation;

namespace Benefactor.Validations.DtoValidations;

public class AddRefererCommissionWithdrawalRequestDtoValidator: AbstractValidator<AddRefererCommissionWithdrawalRequestDto>
{
    public AddRefererCommissionWithdrawalRequestDtoValidator()
    {
        RuleFor(x => x.Amount)
            .Must(x => x > 0)
            .WithErrorCode("The withdraw amount must be above 0")
            .WithMessage("提现金额必须大于0");
    }
}